<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>修德抄经堂</title>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" type="text/css" href="../bower_components/mui/dist/css/mui.min.css">
	<link rel="stylesheet" type="text/css" href="../css/base.css">
	<link rel="stylesheet" type="text/css" href="../css/full.css">
	<link rel="stylesheet" type="text/css" href="../css/newpassword.css">
	<script src="../js/resLoader.js"></script> 
</head>
<body>
	<div class="page">
		<!--<header class="mui-bar mui-bar-nav title">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"><span>返回</span></a>
	      	<h1 class="mui-title">道德抄经堂</h1>
	    </header>-->
	    <div class="content">
	    	<div class="xiugai">
	    		<p class="same pass_title">重新设置密码</p>
	    		<div class="kuang pass_one">
	    			<span class="fang">新密码</span>
	    			<input id="passwords" type="password" name="" placeholder="">
	    		</div>
	    		<div class="kuang pass_two">
	    			<span class="fang">确认密码</span>
	    			<input id="passwords2" onchange="jt()" type="password" name="" placeholder="">
	    		</div>
	    		<button id="btns" class="submit" type="submit">确认</button>
	    	</div>
	    </div>
	    <div id="fugai"></div>
		<p id="wanshan" class="fang">密码不能为空</p>
		<p id="wanshan2" class="fang">两次密码不一致</p>
	</div>
</body>
<script src="../bower_components/mui/dist/js/mui.min.js"></script>
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../js/index.js"></script>
<script>
//	var passwords,passwords2;
//	function jt(){
//		passwords=document.getElementById("passwords").value
//		passwords2=document.getElementById("passwords2").value
//	}
//	document.getElementById("btns").onclick=function(){
//		if(passwords===passwords2){
//			window.location.href="../index.html?backurl="+window.location.href; 
//		}else{
//			alert("两次输入密码不一致")
//		}
//	}
	$('#btns').click(function(){
		if($("#passwords").val()=="" || $("#passwords2").val()==""){
			$("#fugai,#wanshan").show();
		}else if($("#passwords").val()!=$("#passwords2").val()){
			$("#fugai,#wanshan2").show();
		}else{
			window.location.href="login.html?backurl="+window.location.href;
		}
	})
	$("#fugai,#wanshan").click(function(){
		$("#fugai,#wanshan").hide();
	})
	$("#fugai,#wanshan").click(function(){
		$("#fugai,#wanshan2").hide();
	})
</script>
</html>